<template>
  <div class="pac-apply-result">
    <div class="drawer-wrap">
      <div class="drawer-content tag-scrollbar">
        <div class="content-divider second">
          <div class="clearfix">
            <div class="number">02</div>
            <div class="divider-title">申请状态<br />Status of application</div>
            <div class="bg"></div>
          </div>
        </div>
        <div class="status">
          <span><i class="el-icon-check"></i></span>
          <p>申请成功</p>
        </div>
        <el-row :gutter="20">
          <el-col :span="24" align="center">
            <el-button type="primary" @click="goTest">去测试</el-button>
          </el-col>
        </el-row>
      </div>
    </div>
    <div class="drawer-btns">
      <el-button type="primary" size="medium" @click="close(false)">关闭</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    goTest() {
      this.close(true)
    },
    close(test = false) {
      this.$emit('refresh', test)
    }
  }
}
</script>

<style lang="scss">
.pac-apply-result {
  .status {
    text-align: center;
    margin: 50px 0;
    span {
      font-size: 50px;
      display: inline-block;
      width: 80px;
      height: 80px;
      margin-bottom: 20px;
      color: #fff;
      background-color: #3a8bf9;
      line-height: 80px;
      border-radius: 50%;
    }
    p {
      color: #3a8bf9;
    }
  }
}
</style>
